package com.marktotop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * OfficeBootApplication
 *
 * @author WXLD
 * @Data 2021/6/21
 * @Since 1.0
 */
@SpringBootApplication
@MapperScan("com.marktotop.mapper")
public class OfficeBootApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(OfficeBootApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(OfficeBootApplication.class);
    }
}